home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / 599.swf / scripts / frame_206 / DoAction.as
Text File  |  2006-01-17  |  682b  |  39 lines

  1. call("dacard");
  2. if((hd.substr(i * "3" + "2","1") eq "r" or hd.substr(i * "3" + "2","1") eq "c") and colr eq "r")
  3. {
  4.    tellTarget("/sounds")
  5.    {
  6.       gotoAndStop("win");
  7.       play();
  8.    }
  9.    tellTarget("/wl")
  10.    {
  11.       gotoAndStop("won");
  12.    }
  13.    win *= "2";
  14. }
  15. else if((hd.substr(i * "3" + "2","1") eq "b" or hd.substr(i * "3" + "2","1") eq "t") and colr eq "b")
  16. {
  17.    tellTarget("/sounds")
  18.    {
  19.       gotoAndStop("win");
  20.       play();
  21.    }
  22.    tellTarget("/wl")
  23.    {
  24.       gotoAndStop("won");
  25.    }
  26.    win *= "2";
  27. }
  28. else
  29. {
  30.    tellTarget("/wl")
  31.    {
  32.       gotoAndStop("lost");
  33.    }
  34.    gotoAndPlay(207);
  35.    win = "0";
  36.    risc = "0";
  37. }
  38. i -= "1";
  39.